package com.lz.blog.controller;

import com.lz.blog.utils.UserThreadLocal;
import com.lz.blog.vo.Result;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试拦截器接口
 * @author Liz
 * @date 2023/02/14 16:33
 **/
@RestController
@RequestMapping("/test")
public class TestController {

    @RequestMapping
    public Result test(){
        System.out.println(UserThreadLocal.get());
        return Result.success(null);
    }
}
